package com.kgc.community.service;

import com.github.pagehelper.PageInfo;
import com.kgc.community.pojo.User;
import com.kgc.community.pojo.Village;
import com.kgc.community.pojo.VillageExample;

import java.util.Date;
import java.util.List;

/**
 * 赵天亮
 */
public interface VillageService {
    /**
     *
     * @param buildTime
     * @param buildTime2
     * @param describe
     * @param pageNum
     * @param pageSize
     * @return 查询分页
     */
    PageInfo<Village> selectAll(Date buildTime,Date buildTime2,String describe, Integer pageNum, Integer pageSize);

    /**
     * 查询几条数据
     * @param village
     * @return
     */
    int Count(Village village);

    /**
     * 添加
     * @param village
     * @return
     */
    Integer add(Village village);

    /**
     * 查询
     * @return
     */
    List<Village> selectByExample();

    /**
     * 查询主键
     * @param id
     * @return
     */
    Village selectId(Integer id);

    /**
     * 修改
     * @param village
     * @return
     */
    int update(Village village);

    /**
     * 删除
     * @param id
     * @return
     */
    int deleteVillageById(Integer id);
}
